package cn.cefoc.sentinel;

import cn.cefoc.domain.User;
import com.alibaba.csp.sentinel.slots.block.BlockException;
import org.springframework.web.bind.annotation.PathVariable;

public class getUserFallbackClass {
    // 熔断类
    public static User getUserFallback(@PathVariable("id") Long id, Throwable throwable){
        return new User(-1L,"熔断类里面熔断哦","快断了，别进来0-0~~");
    }
}
